.loginContainer {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  overflow: hidden;
}

.loginContent {
  width: 100%;
  display: flex;
}

.leftPanel {
  flex: 1;
  background: linear-gradient(135deg, #001529 0%, #003366 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;

  .circle1, .circle2, .circle3 {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
  }

  .circle1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation: rotate 30s linear infinite;
  }

  .circle2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation: rotate 20s linear infinite reverse;
  }

  .circle3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
  }

  .gridBackground {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
  }

  .content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 600px;

    h1 {
      font-size: 48px;
      font-weight: bold;
      margin-bottom: 24px;
      color: white;
      text-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
    }

    p {
      font-size: 20px;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 48px;
    }
  }

  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
  }

  .featureItem {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;

    &:hover {
      transform: translateY(-5px);
      background: rgba(255, 255, 255, 0.15);

      .chargingIcon {
        animation: pulse 1.5s infinite;
      }
    }

    .featureIcon {
      font-size: 28px;
      margin-bottom: 16px;
    }

    h3 {
      color: white;
      font-size: 18px;
      margin-bottom: 8px;
    }

    p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 14px;
      margin: 0;
    }
  }

  .chargingStation {
    position: absolute;
    bottom: 40px;
    right: 60px;
    width: 100px;
    height: 160px;
    opacity: 0.6;

    .stationBody {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 40px;
      height: 120px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
    }

    .energyFlow {
      position: absolute;
      bottom: 40px;
      right: 40px;
      width: 60px;
      height: 2px;

      .energyParticle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: #64b5f6;
        border-radius: 50%;
        animation: flowParticle 2s linear infinite;

        &:nth-child(2) { animation-delay: 0.6s; }
        &:nth-child(3) { animation-delay: 1.2s; }
      }
    }
  }
}

.rightPanel {
  width: 500px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loginCard {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 21, 41, 0.08);
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 40px;

  .logo {
    height: 44px;
    margin-bottom: 24px;
  }

  h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #001529;
    letter-spacing: 1px;
  }

  p {
    font-size: 14px;
    color: rgba(0, 21, 41, 0.45);
  }
}

.loginForm {
  :global {
    .ant-form-item {
      margin-bottom: 24px;
    }

    .ant-input-affix-wrapper {
      height: 44px;
      padding: 0 11px;
      border-radius: 8px;
      border: 1px solid rgba(0, 21, 41, 0.1);
      transition: all 0.3s;

      &:hover, &:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
      }
    }

    .ant-input-prefix {
      color: rgba(0, 21, 41, 0.25);
      font-size: 16px;
      margin-right: 10px;
    }
  }
}

.formBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loginButton {
  height: 44px;
  font-size: 16px;
  background: linear-gradient(140deg, #001529 0%, #0066cc 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 21, 41, 0.1);
  transition: all 0.3s;

  &:hover {
    background: linear-gradient(140deg, #002140 0%, #0077e6 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 21, 41, 0.15);
  }
}

.footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(0, 21, 41, 0.45);

  .registerBtn {
    color: #0066cc;
    font-weight: 500;
    transition: all 0.3s;

    &:hover {
      color: #0077e6;
    }
  }
}

.forgotBtn {
  color: rgba(0, 21, 41, 0.45);
  transition: all 0.3s;

  &:hover {
    color: #0066cc;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes cableSwing {
  0%, 100% { transform: translateX(-50%) rotate(-5deg); }
  50% { transform: translateX(-50%) rotate(5deg); }
}

@keyframes flowParticle {
  0% {
    left: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
